package com.yksj.healthtalk.ui.server;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.view.View.OnClickListener;

import com.yksj.healthtalk.comm.BaseFragmentActivity;
import com.yksj.healthtalk.ui.R;

public class BMapApiServerFragmentActivity extends BaseFragmentActivity {

	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
	setContentView(R.layout.server_baidu_map_layout);
	initTitle();
	titleLeftBtn.setOnClickListener(new  OnClickListener() {
		@Override
		public void onClick(View v) {
			onBackPressed();
		}
	});
	titleTextV.setText(getIntent().getStringExtra("title"));
	
	FragmentManager fragmentManager = getSupportFragmentManager();
	FragmentTransaction transaction = fragmentManager.beginTransaction();
	Fragment fragment = Fragment.instantiate(this,BMapApiServerFragment.class.getName());
	Bundle extras = getIntent().getExtras();
	fragment.setArguments(extras);
	transaction.replace(R.id.fragment,fragment);
	transaction.commit();
	
	}
}
